package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.domain.PromotionAd;
import com.lagou.domain.PromotionAdVO;

public interface PromotionAdService {

    /**
     * @param adVO
     * @return
     */
    public PageInfo findAllPromotionAdByPage(PromotionAdVO adVO);

    /**
     * 新增广告
     * @param promotionAd
     */
    public void savePromotionAd(PromotionAd promotionAd);

    /**
     * 修改广告
     * @param promotionAd
     */
    public void updatePromotionAd(PromotionAd promotionAd);

    /**
     * 根据id查询广告信息
     * @param id
     * @return
     */
    public PromotionAd findPromotionAdById(Integer id);

    /**
     * 根据id修改状态
     * @param promotionAd
     */
    public void updatePromotionAdStatus(Integer id,Integer status);
}
